package com.d3works.apps.bpm.service.init;

import com.d3works.apps.baml.tools.BpmTools;
import com.d3works.apps.bpm.listener.WkfExecutionListener;
import com.d3works.inject.Beans;
import org.camunda.bpm.application.ProcessApplication;
import org.camunda.bpm.application.impl.EmbeddedProcessApplication;
import org.camunda.bpm.engine.delegate.ExecutionListener;

@ProcessApplication
public class WkfProcessApplication extends EmbeddedProcessApplication {

  public ExecutionListener getExecutionListener() {

    return Beans.get(WkfExecutionListener.class);
  }

  @Override
  public String getName() {
    return BpmTools.getCurentTenant();
  }
}
